package thread09.thread;

class MyThread extends Thread
{
	private String name;
	
	public MyThread()
	{
		
	}
	public MyThread(String name)
	{
		super();
		this.name = name;
	}

	@Override
	public void run()
	{
		for(int i=0;i<10;i++)
		{
			System.out.println(name+"="+i);
		}
	}
}
public class ThreadDemo01
{


	public static void main(String[] args)
	{
		MyThread mt1 = new MyThread("A");
		MyThread mt2 = new MyThread("B");
		mt1.start();
		//mt1.start();
		mt2.start();
	}

}
